package com.lkd.controller;

import com.lkd.mapper.BusinessTypeMapper;
import com.lkd.entity.Business;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Z.lx
 * @Date: 2025/8/17 14:49
 * @Description:
 **/
@RestController
@RequestMapping("/api/vm-service/businessType")
@Slf4j
public class BusinessController {
    @Autowired
    private BusinessTypeMapper businessTypeMapper;
    @GetMapping
    public List<Business> list(){
        return businessTypeMapper.list();
    }
}
